package com.attilax.lang;

public class javaUtil {

	public static void main(String[] args) {
		String s="pkg .pk2 . cls";
		System.out.println(clr(s));
	}
	public static String clr(String className) {
	    String[] a=className.split("\\.");
	    String s="";
	    for (String name : a) {
	    	name=name.trim();
	    	if(s.length()==0)
	    		s=name;
	    	else
			s=s+"."+name;
		}
		return s;
	}

}
